function UMC()
{

	// singleton
	if ( UMC.prototype._singletonInstance ) {
	      return UMC.prototype._singletonInstance;
	}
	UMC.prototype._singletonInstance = this;
	
	// Create User Manager
	UM = new UM();
	
	/*
	// user controlled
	this.init_displayUser = function(uid)
	{
		UM.get('user', null, uid, null);
	};
	
	// not user controlled
	this.displayUser = function(user)
	{
		console.log('#user .'+user.getUid());
		if($('#user .'+user.getUid()).length)
		{
			console.log('here');
			$('#user .'+user.getUid()).html = 'updated';
		}
		else
		{
			console.log('here');
			$('#contentUser').html(user.getUid());
		}
	};*/
	
	this.init_miniBox = function(uid, selector)
	{
		var user = UM.get('mini', uid, null, selector);
		console.log(user);
	};
	
	this.display_miniBox = function(user, selector)
	{
		console.log(selector);
		$(selector).html(createMiniBox(user));
	};
	
	function createMiniBox(user)
	{
		var miniBox = '<img class="pull-left img-polaroid photo-small" src="'+displayPhoto(user.getUid(), user.getImgURL())+'">'+user.getUsername();
		return miniBox;
	}
	
	function displayPhoto(uid, imgURL)
	{
		var path = '/'+BASEPATH+'assets/uploads/';
		
		if(imgURL == 'fb')
		{
			console.log('pic fb');
			imgURL = 'http://graph.facebook.com/' + uid + '/picture';
		}
		else if(imgURL != undefined || imgURL != null)
		{
			console.log('pic local');
			
			var array = imgURL.split(',');
			if(array[0] == 'empty')
				{
					imgURL = path+'nophoto.png';
				}
			else
				{
					imgURL = path+uid+'/'+array[0];
				}
		}
		else
		{
			console.log('pic error');
			
			imgURL = path+'nophoto.png';
		}
		
		return imgURL;
	};
}